package com.stylefeng.guns.modular.product.model;

import java.io.Serializable;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2019-03-16
 */
@Data
@TableName("sys_customer")
public class Customer extends Model<Customer> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Excel(name = "User Name")
    @TableField("user_name")
    private String userName;

    @Excel(name = "Account1")
    private String account1;

    @Excel(name = "Account2")
    private String account2;

    @Excel(name = "Email")
    private String email;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
